// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.iso;

import org.junit.Assert;
import org.junit.Test;

public class test_ObjectsSyncRequests_getObjectInsertIndex extends Assert {
    @Test
    public void test_getInsertIndex() {
        long[] long0 = new long[]{13L, 88L, 51L};
        long[] long1 = new long[]{8L, 13L, 52L, 21L, 88L, 36L, 51L, 15L};
        assertEquals(0L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 8L));
        assertEquals(-1L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 13L));
        assertEquals(1L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 52L));
        assertEquals(1L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 21L));
        assertEquals(-1L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 88L));
        assertEquals(2L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 36L));
        assertEquals(-1L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 51L));
        assertEquals(3L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 15L));
    }

    @Test
    public void test_getInsertIndex2() {
        long[] long0 = new long[0];
        long[] long1 = new long[]{81L, 45L, 72L};
        assertEquals(-1L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 8L));
        assertEquals(-1L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 13L));
        assertEquals(0L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 81L));
        assertEquals(0L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 45L));
        assertEquals(0L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 72L));
    }

    @Test
    public void test_getInsertIndex3() {
        long[] long0 = new long[]{71L, 66L, 381L};
        long[] long1 = new long[]{55L, 81L, 71L, 41L, 66L, 381L, 68L};
        assertEquals(0L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 55L));
        assertEquals(0L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 81L));
        assertEquals(-1L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 71L));
        assertEquals(1L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 41L));
        assertEquals(-1L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 66L));
        assertEquals(-1L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 381L));
        assertEquals(3L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 68L));
        assertEquals(-1L, (long)ObjectsSyncRequests.getObjectInsertIndex(long0, long1, 33L));
    }
}
